package com.waves.core.constant.redis;

/**
 * 用户redisKey常量
 *
 * @author dlw
 */
public class UserRedisKey {

    private static final String BASE_KEY = "user:";

    /**
     * 用户地理坐标
     */
    public static final String USER_INFO_GEO = "user:geo:location";

    /**
     * 粉丝列表
     */
    public static final String USER_FOLLOWED_SET = "followed:uid_%d";

    /**
     * 关注列表
     */
    public static final String USER_FOLLOW_SET = "follow:uid_%d";

    public static String getKey(String key, Object... objects) {
        return BASE_KEY + String.format(key, objects);
    }

}
